package com.uwantsoft.business.service.domain.city;

import javax.persistence.Column;
import java.math.BigDecimal;

/**
 * @author Chuanbao
 */
public class ParkSortingParameters {
    @Column(name = "predefined_price")
    private BigDecimal predefinedPrice;
    @Column(name = "predefined_distance")
    private Integer predefinedDistance;
    @Column(name = "price_weight")
    private BigDecimal priceWeight;
    @Column(name = "distance_weight")
    private BigDecimal distanceWeight;

    public void update(BigDecimal predefinedPrice, Integer predefinedDistance, BigDecimal priceWeight, BigDecimal distanceWeight) {
        this.predefinedPrice = predefinedPrice;
        this.predefinedDistance = predefinedDistance;
        this.priceWeight = priceWeight;
        this.distanceWeight = distanceWeight;
    }
    public String distanceWeightAsText() {
        return this.distanceWeight.toString();
    }

    public String predefinedDistanceAsText() {
        return this.predefinedDistance.toString();
    }

    public String predefinedPriceAsText() {
        return this.predefinedPrice.toString();
    }

    public String priceWeightAsText() {
        return this.priceWeight.toString();
    }
}


